/*
 * readtm.h
 *
 *  Created on: 2020-6-2
 *      Author: root
 */

#ifndef READTM_H_
#define READTM_H_

#ifdef __cplusplus
extern "C"{
#endif
#include <stdio.h>
#include <stdlib.h>//EXIT_FAILURE
#include <linux/rtc.h>//usr/include/linux/rtc.h struct rtc_time
#include <fcntl.h>//O_RDONLY open close funcitonRE
#include <sys/ioctl.h>//ioctl funciton /usr/include/sys/ioctl
#include <unistd.h>

int readRTC_TM(struct rtc_time *p_rtc_tm);


#ifdef __cplusplus
}
#endif

#endif /* READTM_H_ */
